package smartlifev30.com.sdk.bean.request;

import android.util.Log;

import java.util.List;

import smartlifev30.com.sdk.net.baiwei.protocol.Body;

/**
 * Created by tys on 2018/8/15.
 */

public class AddLinkageRequest extends Body{

    private Linkage linkage;

    public class Linkage {
        private String name;
        private String state;
        private int delay;
        private List<Origin> origin;
        private List<Link>link;

        public class Origin{

                    private int device_id;

                    /**
                     * //0-信号量，， 1: 等于, 2:小于, 3:大于, 4:小于等于, 5:大于等于
                     */
                    private int contidion;

                    private DeviceStatus device_status;

                    public int getDevice_id() {
                        return device_id;
                    }

                    public void setDevice_id(int device_id) {
                        this.device_id = device_id;
                    }

                    public int getContidion() {
                        return contidion;
                    }

                    public void setContidion(int contidion) {
                        this.contidion = contidion;
                    }

                    public DeviceStatus getDevice_status() {
                        return device_status;
                    }

                    public void setDevice_status(DeviceStatus device_status) {
                        this.device_status = device_status;
                    }
                }
        public class Link {
                    private int device_id;
                    private int type;
                    private int delay;
                    private DeviceStatus device_status;

                    public int getDevice_id() {
                        return device_id;
                    }

                    public void setDevice_id(int device_id) {
                        this.device_id = device_id;
                    }

                    public int getType() {
                        return type;
                    }

                    public void setType(int type) {
                        this.type = type;
                    }

                    public int getDelay() {
                        return delay;
                    }

                    public void setDelay(int delay) {
                        this.delay = delay;
                    }

                    public DeviceStatus getDevice_status() {
                        return device_status;
                    }

                    public void setDevice_status(DeviceStatus device_status) {
                        this.device_status = device_status;
                    }
                }
        public class DeviceStatus{
            private String state;
            private String color;
            private String mode;
            /**
             * 当为红外或数据透传类设备时
             */
            private String cmd;

            public String getState() {
                return state;
            }

            public void setState(String state) {
                this.state = state;
            }

            public String getColor() {
                return color;
            }

            public void setColor(String color) {
                this.color = color;
            }

            public String getMode() {
                return mode;
            }

            public void setMode(String mode) {
                this.mode = mode;
            }

            public String getCmd() {
                return cmd;
            }

            public void setCmd(String cmd) {
                this.cmd = cmd;
            }
        }
    }


    public Linkage getLinkage() {
        return linkage;
    }

    public void setLinkage(Linkage linkage) {
        this.linkage = linkage;
    }
}
